<?php

use app\assets\UserLoginAsset;
use yii\helpers\Html;

/**
 * @var $this yii\web\View
 * @var $model app\models\UserLoginForm
 */

UserLoginAsset::register($this);

$this->title = '用户登录';
?>
<?php $this->beginPage();?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>"  class="no-js">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="<?= Yii::$app->charset ?>">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
    <meta charset="UTF-8" />
    <meta name="description" content="用户登录" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <!--[if IE]>
    <script src="js/html5.js"></script>
    <![endif]-->
</head>
<?php $this->beginBody() ?>
<body>

<div class="container demo-1">
	<div class="content">
		<div id="large-header" class="large-header">
			<canvas id="demo-canvas"></canvas>
			<div class="logo_box">
				<h3>物联管理平台-欢迎你</h3>
                <h4 style="color: white">
                <?php if (!empty($model->errors)) {
                    $errors = $model->errors;
                    $error = array_pop($errors);
                    echo $error[0];
                } else {
                    echo '请输入您的登录信息';
                }?>
                </h4>
                <?php echo Html::beginForm(['/user/login'], 'post', ['id'=>'login-form']);?>
				<form action="#" name="f" method="post">
					<div class="input_outer">
						<span class="u_user"></span>
						<input id="userloginform-username" name="UserLoginForm[username]" class="text" style="color: #FFFFFF !important" type="text" placeholder="请输入账户">
					</div>
					<div class="input_outer">
						<span class="us_uer"></span>
						<input id="userloginform-password" name="UserLoginForm[password]" class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;"value="" type="password" placeholder="请输入密码">
					</div>
					<div class="mb2"><a class="act-but submit" href="javascript:document.forms[0].submit()" style="color: #FFFFFF">登录</a></div>
   
                <?php echo Html::endForm();?>
			</div>
		</div>
	</div>
</div><!-- /container -->
</body>
<?php $this->endBody() ?>
</html>
<?php $this->endPage() ?>
